package demo2;

class Animal {
    public int age = 90;
    public String name;

}
class Dog extends Animal {
    public Dog() {
        System.out.println(age);

    }
    public void show() {
        System.out.println(this.age + this.name);
    }
}
public class Test {
    public static void main(String[] args) {
        Dog dog = new Dog();
        
    }
}
